package com.antler.smt.response.portal;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 快递物流实体
 *
 * @author zhangyi
 * @date 2018/4/12 10:18
 */
public class GetOrderLogisticsResp {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", name = "id")
    private Long id;

    /**
     * 发货方式 1服务商发货 2项目专员代发货
     */
    @ApiModelProperty(value = "发货方式 1服务商发货 2项目专员代发货", name = "deliverType")
    private Byte deliverType;

    /**
     * 快递公司id，从配置表中取
     */
    @ApiModelProperty(value = "快递公司id，从配置表中取", name = "postCompanyId")
    private Integer postCompanyId;

    /**
     * 快递公司名称
     */
    @ApiModelProperty(value = "快递公司名称", name = "postCompanyName")
    private String postCompanyName;

    /**
     * 快递运单号
     */
    @ApiModelProperty(value = "快递运单号", name = "trackingNo")
    private String trackingNo;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id", name = "orderId")
    private Long orderId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

    public Byte getDeliverType() {
        return deliverType;
    }

    public void setDeliverType(Byte deliverType) {
        this.deliverType = deliverType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPostCompanyId() {
        return postCompanyId;
    }

    public void setPostCompanyId(Integer postCompanyId) {
        this.postCompanyId = postCompanyId;
    }

    public String getPostCompanyName() {
        return postCompanyName;
    }

    public void setPostCompanyName(String postCompanyName) {
        this.postCompanyName = postCompanyName;
    }

    public String getTrackingNo() {
        return trackingNo;
    }

    public void setTrackingNo(String trackingNo) {
        this.trackingNo = trackingNo;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @JsonFormat(timezone = "Hongkong", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @JsonFormat(timezone = "Hongkong", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
